const config = {
  id: 'college',
  title: '重点院校',
  icon: require('../images/college.png'),
  // subtitle:'辅助说明',
  dataType: 'json', //是否从json拉取数据绘制图层 原yearbook分类   //若不需要拉取数据 为service
  displayType: 'featureLayer', //migrateEchartLayer featureLayer
  // 若需通过json生成图层
  uniqueKey:'regionName',
  fieldJsonArray: [
    { name: 'OBJECTID', alias: 'ObjectID', type: 'oid' },
    { name: 'regionName', alias: 'regionName', type: 'string' },
    { name: 'highSch', alias: 'highSch', type: 'double' },
  ],
  // 场景参数
  initCamera: {
    heading: 359,
    tilt: 0.3633433,
    fov: 55,
    position: {
      latitude: 31.108,
      longitude: 119.094,
      z: 2398824,
    },
  },
  //底图
  basemapTitle: '深色底图',
  // 右侧面板显示参数
  hasTable: false,
  hasChart: false,
  hasDataInfo: false,
  // 年鉴数据为false 港口等需要通过数据库数据生成点时为true
  hasGeometryData: false,
  //是否打开图例
  hasLegend: true,
  // service图层
  serviceLayer: [],
  definitionExpression: "",
  //数据级别
  selectedDataLevel: '', //630100
  // 是否有时间轴  时间轴是否显示由timeSeries 决定
  hasTimeLine: false,
  unit: '',
  initTime: '',
  timeSeries: [],
  hoverEnabled: false,
  geometryType: 'point',
  renderer: {
    type: 'class-breaks',
    defaultSymbol: {
      type: 'simple-marker', // autocasts as new SimpleMarkerSymbol()
      color: 'yellow',
      outline: {
        width: 0.5,
        color: [255, 255, 255, 0.5],
      },
    },
    defaultLabel: '其他',
    visualVariables: [
      {
        type: 'size',
        field: 'highSch',
        stops: [
          { value: 5, size: 6, label: '< 5万' },
          { value: 70, size: 40, label: '> 70万' },
        ],
        legendOptions: {
          title: '高等学校在校人数',
        }
      },
      {
        type: 'opacity',
        field:  'highSch',
        stops: [
          { value: 5, opacity: 0.8, label: '< 5万' },
          { value: 70, opacity: 1, label: '> 70万' },
        ],
        legendOptions: {
          title: '高等学校在校人数',
        },
      },
    ],
  },
};
export default config;
